/**
 * 
 */
package org.t2.backstage.module.hotfix.model;

import java.util.ArrayList;
import java.util.List;

import org.banish.sql.core.annotation.Column;
import org.banish.sql.core.annotation.Id;
import org.banish.sql.core.annotation.Table;
import org.banish.sql.core.annotation.Id.Strategy;
import org.banish.sql.core.entity.AbstractEntity;
import org.gaming.service.repository.annotation.NoCache;
import org.springframework.stereotype.Repository;

/**
 * @author YY
 *
 */
@Repository
@NoCache
@Table(comment = "热更配置记录表", dbAlias = "backstage")
public class FixDesign extends AbstractEntity {
	@Id(strategy = Strategy.AUTO)
	@Column(comment = "唯一ID")
	private long id;
	@Column(name = "server_uids", comment = "热更的服务器唯一ID集合")
	private List<Integer> serverUids = new ArrayList<>();
	@Column(name = "file_names", comment = "配置文件相对路径", extra = "text")
	private List<String> fileNames = new ArrayList<>();
	@Column(name = "user_id", comment = "操作员ID")
	private long userId;
	@Column(name = "user_name", comment = "操作员名称")
	private String userName;
	@Column(name = "fix_time", comment = "热更时间批号")
	private String fixTime;
	
	public long getId() {
		return id;
	}
	public void setId(long id) {
		this.id = id;
	}
	public List<Integer> getServerUids() {
		return serverUids;
	}
	public void setServerUids(List<Integer> serverUids) {
		this.serverUids = serverUids;
	}
	public long getUserId() {
		return userId;
	}
	public void setUserId(long userId) {
		this.userId = userId;
	}
	public String getUserName() {
		return userName;
	}
	public void setUserName(String userName) {
		this.userName = userName;
	}
	public List<String> getFileNames() {
		return fileNames;
	}
	public void setFileNames(List<String> fileNames) {
		this.fileNames = fileNames;
	}
	public String getFixTime() {
		return fixTime;
	}
	public void setFixTime(String fixTime) {
		this.fixTime = fixTime;
	}
}
